package com.ibm.cloud.banking.account.repository;


import com.ibm.cloud.banking.account.entity.AccountOpenCloseDetail;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface IAccountOpenCloseDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccountOpenCloseDetail record);

    int insertSelective(AccountOpenCloseDetail record);

    AccountOpenCloseDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccountOpenCloseDetail record);

    int updateByPrimaryKey(AccountOpenCloseDetail record);


    List<AccountOpenCloseDetail> getOpenAndCloseAccts(@Param("transDate") Date transDate);
    

    List<AccountOpenCloseDetail> getOpenAndCloseAcctsStr(@Param("transDate") String transDate);
}